package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    Map<String, Object> uploadTrack(MultipartFile file);

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    void findUserTrackPage(IPage<TrackListVo> page, TrackInfoQuery trackInfoQuery);

    void updateAlbumInfo(Long trackId, TrackInfoVo trackInfoVo);

    void removeTrackInfo(Long trackId);

    IPage<AlbumTrackListVo> findAlbumTrackPage(IPage<AlbumTrackListVo> albumTrackListVoPage, Long albumId);

    TrackStatVo getTrackStatVo(Long trackId);

    List<TrackListVo> getTrackListByIds(List<Long> trackIdList);

    List<Map<String, Object>> findUserTrackPaidList(Long currentTrackId);

    List<TrackInfo> getTrackListByCurrentTrackId(Long userId, Long trackId, Integer trackCount);
}
